<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title>${appname}</title>
<%@ include file="/WEB-INF/view/common/css_js_base.jsp"%>
<%@ include file="/WEB-INF/view/common/css_js_ztree.jsp"%>
<script type="text/javascript">
var setting = {
	async: {
		enable: true,
		url:_ctx + "/ztree/nodes.do",
		autoParam:["id", "pId","tId"]
	},
	data: {
		simpleData: {
			enable: true
		}
	},
	callback: {
		//onClick: zTreeOnClick
	}
};
var ztreeObj;

$(function(){
	ztreeObj = $.fn.zTree.init($("#zTree"), setting);
});
</script>
</head>
<body>
<%@ include file="/WEB-INF/view/common/navbar.jsp"%>
<!-- Begin page content -->
<div class="container">
	<div class="row">
		<div class="col-md-3">
			<div class="well">
				<ul id="zTree" class="ztree"></ul>
			</div>
		</div>
		<div class="col-md-9">
			<div class="panel panel-default">
				  <div class="panel-heading">
				        系统注册
				    <div class="pull-right">
						<a class="btn btn-primary btn-xs" href="javascript:addChildNode()">新增子节点</a>
						<a class="btn btn-primary btn-xs" href="javascript:updateNode()">修改节点</a>
						<a class="btn btn-primary btn-xs" href="javascript:deleteNode()">删除节点</a>
					</div>
				  </div>
				  <div class="panel-body">
				  	<div id="data" class="mg-top24">
					</div>
				  </div>
			</div>
		</div>
	</div>
</div>
<%@ include file="/WEB-INF/view/common/footer.jsp"%>
</body>
</html>
